<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/6/8
  Time: 14:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
<%--    所有的路径，项目名全部自动获取（强制要求）--%>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap-3.4.1-dist/css/bootstrap-theme.min.css">

</head>
<body>



<div class="container">
    <div class="row">
        <div class="col-md-4">

        </div>
        <div class="col-md-4">
            <%--action表示发送请示的地址
method:请示方式--%>
                <h2>商品修改功能</h2>
            <form class="form-horizontal" action="${pageContext.request.contextPath}/updateGood" method="post">
<%--                通过id确定商品，id隐藏并传到后台--%>
                <input type="hidden" name="id" value="${good.id}">
                <div class="form-group">
                    <label for="inputName" class="col-sm-3 control-label">名称</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" id="inputName" name="name" value="${good.name}" placeholder="请输入商品名称">
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputPrice" class="col-sm-3 control-label">价格</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" name="price" value="${good.price}" id="inputPrice" placeholder="请输入价格">
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputInfo" class="col-sm-3 control-label">详情</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" id="inputInfo" name="info" value="${good.info}" placeholder="请输入介绍">
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-6 col-sm-6">
                        <button type="submit" class="btn btn-success ">提交</button>
                        <button type="reset" class="btn btn-success ">重置</button>
                    </div>
                </div>
            </form>

        </div>
        <div class="col-md-4">
            <div class="container">
                <div class="row">
                    <div class="col-sm-6"></div>
                    <div class="col-sm-6"></div>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>
